.class public Lcom/netease/newsreader/activity/LinkOutSide;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "LinkOutSide.java"


# instance fields
.field private contentWebview:Landroid/webkit/WebView;

.field private handler:Landroid/os/Handler;

.field private href:Ljava/lang/String;

.field private loadingbar:Landroid/widget/LinearLayout;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 21
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 25
    const-string v0, "http://3g.163.com/x/"

    iput-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->href:Ljava/lang/String;

    .line 99
    new-instance v0, Lcom/netease/newsreader/activity/LinkOutSide$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/LinkOutSide$1;-><init>(Lcom/netease/newsreader/activity/LinkOutSide;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->handler:Landroid/os/Handler;

    .line 21
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/LinkOutSide;)Landroid/webkit/WebView;
    .locals 1
    .parameter

    .prologue
    .line 23
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/LinkOutSide;)Ljava/lang/String;
    .locals 1
    .parameter

    .prologue
    .line 25
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->href:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/LinkOutSide;)Landroid/os/Handler;
    .locals 1
    .parameter

    .prologue
    .line 99
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->handler:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/LinkOutSide;)Landroid/widget/LinearLayout;
    .locals 1
    .parameter

    .prologue
    .line 24
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->loadingbar:Landroid/widget/LinearLayout;

    return-object v0
.end method

.method private findViewsById()V
    .locals 5

    .prologue
    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 44
    const v0, 0x7f0c00c4

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/LinkOutSide;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/webkit/WebView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    .line 45
    const v0, 0x7f0c00c3

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/LinkOutSide;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->loadingbar:Landroid/widget/LinearLayout;

    .line 46
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->loadingbar:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 47
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 48
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    .line 52
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setSaveFormData(Z)V

    .line 53
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/webkit/WebSettings;->setSavePassword(Z)V

    .line 54
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    invoke-virtual {v0, v3}, Landroid/webkit/WebView;->clearCache(Z)V

    .line 55
    invoke-static {p0}, Lcom/netease/newsreader/util/Tools;->isCMWAPMobileNet(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 56
    invoke-static {}, Landroid/webkit/WebView;->enablePlatformNotifications()V

    .line 57
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    const-string v1, "10.0.0.172"

    const-string v2, "80"

    const-string v3, ""

    const-string v4, ""

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/webkit/WebView;->setHttpAuthUsernamePassword(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 59
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    new-instance v1, Lcom/netease/newsreader/activity/LinkOutSide$3;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/LinkOutSide$3;-><init>(Lcom/netease/newsreader/activity/LinkOutSide;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setDownloadListener(Landroid/webkit/DownloadListener;)V

    .line 68
    return-void
.end method

.method private setListener()V
    .locals 2

    .prologue
    .line 71
    iget-object v0, p0, Lcom/netease/newsreader/activity/LinkOutSide;->contentWebview:Landroid/webkit/WebView;

    new-instance v1, Lcom/netease/newsreader/activity/LinkOutSide$4;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/LinkOutSide$4;-><init>(Lcom/netease/newsreader/activity/LinkOutSide;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 97
    return-void
.end method


# virtual methods
.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 117
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/LinkOutSide;->finish()V

    .line 118
    return-void
.end method

.method public onApplyTheme()V
    .locals 3

    .prologue
    .line 122
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 123
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/LinkOutSide;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 124
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v1, 0x7f0c0001

    const v2, 0x7f0200fe

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 125
    const v1, 0x7f0c006f

    const v2, 0x7f020089

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 126
    const v1, 0x7f0c0003

    const v2, 0x7f080025

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 128
    const v1, 0x7f0c006e

    const v2, 0x7f020041

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 129
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2
    .parameter "savedInstanceState"

    .prologue
    .line 27
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 28
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/LinkOutSide;->requestWindowFeature(I)Z

    .line 29
    const v1, 0x7f03002f

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/LinkOutSide;->setContentView(I)V

    .line 30
    invoke-direct {p0}, Lcom/netease/newsreader/activity/LinkOutSide;->findViewsById()V

    .line 31
    invoke-direct {p0}, Lcom/netease/newsreader/activity/LinkOutSide;->setListener()V

    .line 32
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/LinkOutSide;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    .line 33
    .local v0, bundle:Landroid/os/Bundle;
    if-eqz v0, :cond_0

    .line 34
    const-string v1, "href"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/activity/LinkOutSide;->href:Ljava/lang/String;

    .line 36
    :cond_0
    new-instance v1, Lcom/netease/newsreader/activity/LinkOutSide$2;

    invoke-direct {v1, p0}, Lcom/netease/newsreader/activity/LinkOutSide$2;-><init>(Lcom/netease/newsreader/activity/LinkOutSide;)V

    .line 40
    invoke-virtual {v1}, Lcom/netease/newsreader/activity/LinkOutSide$2;->start()V

    .line 41
    return-void
.end method
